﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Arquitetura.UI.WebApp
{
    public class ValidatorResult
    {
        #region Propriedade(s)
        public int? Index
        { get; set; }

        public string EntityName
        { get; set; }

        public string EntityField
        { get; set; }

        public CustomValidator Validator
        { get; set; }
        #endregion Propriedade(s)

        #region Construtor(es)
        public ValidatorResult()
        {
            Index = null;
            EntityName = null;
            EntityField = null;
            Validator = null;
        }

        public ValidatorResult(string entityName, string entityField, CustomValidator validator)
        {
            Index = null;
            EntityName = entityName;
            EntityField = entityField;
            Validator = validator;
        }

        public ValidatorResult(int index, string entityName, string entityField, CustomValidator validator)
        {
            Index = index;
            EntityName = entityName;
            EntityField = entityField;
            Validator = validator;
        }
        #endregion Construtor(es)
    }
}
